﻿using FieldTools.Client.ViewModel.Window;
using FieldTools.Util;
using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace FieldTools.Client.View.Window
{
    /// <summary>
    /// MihoyoWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MihoyoWindow : MetroWindow, ITransientDependency
    {
        /// <summary>
        /// 是否已打开窗口（定义该静态属性后即表示当前窗口仅能打开一个）
        /// </summary>
        public static bool IsOpened { get; set; }
        public MihoyoWindow(MihoyoViewModel vm)
        {
            InitializeComponent();
            this.DataContext = vm;
            this.Closing += MihoyoWindow_Closing;
        }

        private void MihoyoWindow_Closing(object? sender, System.ComponentModel.CancelEventArgs e)
        {

        }
    }
}
